package com.project.service.imp;

import com.project.bean.CountBean;
import com.project.mapper.ICountMapper;
import com.project.service.ICountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

@Service
@Transactional
public class CountServiceImp implements ICountService {
    @Autowired
    private ICountMapper mapper;
    @Override
    public List<CountBean> findByItem(LocalDate startDate, LocalDate endDate) {
        return mapper.findByItem(startDate,endDate);
    }

    @Override
    public List<CountBean>  findBrandByItem(LocalDate startDate, LocalDate endDate) {
        return mapper.findBrandByItem(startDate,endDate);
    }
}
